﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
using Maticsoft.Common;
using QunYing.Model;
namespace QunYing.BLL
{
	/// <summary>
	/// GoodsInfo
	/// </summary>
	public partial class GoodsInfo
	{
        /// <summary>
        /// 所有上架商品信息
        /// </summary>
        public DataTable GetGoodsInfo(string DealerID)
        {
            return dal.GetGoodsInfo(DealerID);
        }

        /// <summary>
        /// 所有上架商品信息
        /// </summary>
        public DataTable GetGoodsInfoByCache(string DealerID)
        {
            return dal.GetGoodsInfoByCache(DealerID);
        }

        /// <summary>
        /// 所有上架分类商品信息
        /// <param name="top">显示前N行，0为全部</param>
        /// <param name="type">是否推荐、是否折价、是否兑换</param>
        /// <param name="catagory">商品类别,0为全部</param>
        /// </summary>
        public DataTable GetGoodsInfo(int top, string type, int catagory,string DealerID)
        {
            return dal.GetGoodsInfo(top, type, catagory,DealerID);
        }

        /// <summary>
        /// 所有上架分类商品信息
        /// <param name="top">显示前N行，0为全部</param>
        /// <param name="type">是否推荐、是否折价、是否兑换</param>
        /// <param name="catagory">商品类别,0为全部</param>
        /// </summary>
        public DataTable GetGoodsInfoByCache(int top, string type, int catagory,string DealerID)
        {
            return dal.GetGoodsInfoByCache(top, type, catagory,DealerID);
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public QunYing.Model.GoodsInfo GetGoodsModel(string id)
        {
            return dal.GetGoodsModel(id);
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public QunYing.Model.GoodsInfo GetGoodsModelByCache(string id)
        {
            return dal.GetGoodsModelByCache(id);
        }

        /// <summary>
        /// 排行
        /// <param name="top">显示前N行，0为全部</param>
        /// </summary>
        public DataTable GetGoodsOrder(int top, string DealerID)
        {
            return dal.GetGoodsOrder(top, DealerID);
        }
	}
}

